<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            margin: 100px auto;
            text-align: center;
            line-height: 30px;
        }
        .box h1{
            color: #59adf8;
        }
        .box p{
            line-height: 100px;
            color: rgb(155, 154, 154);
        }
        .btn{
            margin-top: 50px;
            width: 200px;
            height: 50px;
            background-color: #59adf8;
            border: none;
            border-radius: 30px;
            font-size: 18px;
            color: white;
        }
    </style>
</head>

<body>
    <div class="box">
        <h1>支付完成~</h1>
        <p>你已成功充值校园卡点击下方按钮回到小程序</p>
        <button class="btn" type="button" data-action="switchTab">返回小程序</button>
    </div>
    <script src="./jweixin-1.4.0.js"></script>
    <script src="./index.js"></script>
    <script>
        let oBtn = document.querySelector('button');
        document.addEventListener('UniAppJSBridgeReady', function () {
            oBtn.addEventListener('click',function () {
                uni.reLaunch({
                  url: '/pages/publicPages/home'
                });
            })
        })

    </script>
</body>
</html>